<template>
  <div style="line-height: 34px !important;">
    <el-button v-if="isAuth('auditExamTest:list:audit') && params.data.ifPermission === '0'" type="success" title="通过" circle size="small" @click.stop="passHandle">
      <span class="icon iconfont icon-tongguoBak"></span>
    </el-button>
    <el-button v-if="isAuth('auditExamTest:list:audit') && params.data.ifPermission === '0'" type="danger" title="驳回" circle size="small" @click.stop="nopassHandle">
      <span class="icon iconfont icon-butongguo1"></span>
    </el-button>
  </div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
  // props: ["flag"],
  data () {
    return {}
  },
  methods: {
    passHandle () {
      this.params.context.componentParent.passHandle(this.params.data, false)
    },
    nopassHandle () {
      this.params.context.componentParent.nopassHandle(this.params.data)
    }
  }
})
</script>
